package no.sachmuld.methodcombination.examples.adapter.simulastyle;

import no.sachmuld.methodcombination.api.MethodInvocation;

/**
 *
 */
public class FooX extends Foo {

    FooX() {
        with(new FooBehaviour() {

            @Override
            public void bar(MethodInvocation<Void> methodInvocation) {
                System.out.println("FooX.beforeBar");
                methodInvocation.proceed();
                System.out.println("FooX.afterBar");
            }

        });
    }
}

